/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package ar.edu.utn.frsf.cidisi.ginet.formalization.impl;

import ar.edu.utn.frsf.cidisi.ginet.formalization.*;

import java.util.Map;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class FormalizationFactoryImpl extends EFactoryImpl implements FormalizationFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static FormalizationFactory init() {
		try {
			FormalizationFactory theFormalizationFactory = (FormalizationFactory)EPackage.Registry.INSTANCE.getEFactory("ar.edu.utn.frsf.cidisi.formalization"); 
			if (theFormalizationFactory != null) {
				return theFormalizationFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new FormalizationFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FormalizationFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case FormalizationPackage.FORMAL_CBP_LANGUAGE: return createFormalCBPLanguage();
			case FormalizationPackage.FORMAL_ASSOCIATION: return (EObject)createFormalAssociation();
			case FormalizationPackage.FORMAL_ELEMENT: return createFormalElement();
			case FormalizationPackage.METAMODEL_ELEMENT: return createMetamodelElement();
			case FormalizationPackage.ROOT_ELEMENT: return createRootElement();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FormalCBPLanguage createFormalCBPLanguage() {
		FormalCBPLanguageImpl formalCBPLanguage = new FormalCBPLanguageImpl();
		return formalCBPLanguage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Map.Entry<String, String> createFormalAssociation() {
		FormalAssociationImpl formalAssociation = new FormalAssociationImpl();
		return formalAssociation;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FormalElement createFormalElement() {
		FormalElementImpl formalElement = new FormalElementImpl();
		return formalElement;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public MetamodelElement createMetamodelElement() {
		MetamodelElementImpl metamodelElement = new MetamodelElementImpl();
		return metamodelElement;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public RootElement createRootElement() {
		RootElementImpl rootElement = new RootElementImpl();
		return rootElement;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FormalizationPackage getFormalizationPackage() {
		return (FormalizationPackage)getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static FormalizationPackage getPackage() {
		return FormalizationPackage.eINSTANCE;
	}

} //FormalizationFactoryImpl
